package cn.hznc.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Getter;
import lombok.Setter;

/**
 * 层级目录
 *
 * @author xiahuanyu
 * @date 2023/3/6
 */
@Getter
@Setter
@Table(name = "t_type_item")
@TableName(value = "t_type_item")
public class TypeItemEntity {
    /**
     * 系统id
     */
    @Column(name = "id",type = MySqlTypeConstant.INT,length = 11,isKey = true,isAutoIncrement = true)
    private Integer id;

    @Column(name = "order_num",type = MySqlTypeConstant.INT,length = 4)
    private Integer orderNum;

    @Column(name = "type_name",type = MySqlTypeConstant.VARCHAR, length = 200)
    private String typeName;

    @Column(name = "type",type = MySqlTypeConstant.VARCHAR, length = 200)
    private String type;

    @Column(name = "parent_id",type = MySqlTypeConstant.INT,length = 11)
    private Integer parentId;

    @Column(name = "params",type = MySqlTypeConstant.VARCHAR,length = 500)
    @TableField(value = "params")
    private String params;

    @Column(name = "search_params",type = MySqlTypeConstant.VARCHAR,length = 500)
    @TableField(value = "search_params")
    private String searchParams;

}
